#pragma once
#include"HashTable.h"


namespace zxf
{
	template<class K, class V, class Hash = hash_bucket::HashFunc<K>>
	class unordered_map
	{
	public:
		struct MapKeyOfT
		{
			const K& operator()(const pair<K, V>& kv)
			{
				return kv.first;
			}
		};
		bool insert(const pair<K, V>& kv)
		{
			return _ht.Insert(kv);
		}
	private:
		hash_bucket::Hashtable<K, pair<K, V>, MapKeyOfT,Hash> _ht;

	};

}